<%@ page import="myoa.tool.StringTool" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'freshmade.css')}" type="text/css">
    <link rel="stylesheet" href="${resource(dir: 'css', file: 'tools.css')}" type="text/css">
    <link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon_m.ico')}" type="image/x-icon">
    <title><g:layoutTitle default="myoa-${controllerName}-${actionName}"/></title>
    <g:layoutHead/>
</head>

<body id="top">
<div id="header-wrapper">
    <div id="header-wrapper-2">
        <div class="center-wrapper">
            <div id="header">
                <div id="logo">
                    <h1 id="site-title"><g:link uri="/">Techmark <span>Software</span></g:link></h1>

                    <h2 id="site-slogan">Database Tools</h2>
                </div>

                <div id="help-wrapper">
                    <div id="help">
                        <g:link controller="user" action="show" id="${session.loginUser.id}">
                            Hi ${session.loginUser.name}!
                        </g:link>
                        <span class="text-separator">|</span>
                        <g:link controller="auth" action="signOut">Sign Out</g:link>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div id="navigation-wrapper">
    <div id="navigation-wrapper-2">
        <div class="center-wrapper">
            <div id="navigation">
                <ul class="tabbed">
                    <g:set var="ctl" value="${controllerName}"/>
                    <li class="${StringTool.curPage(ctl, 'home')}">
                        <g:link uri="/">Home</g:link></li>
                    <li class="${StringTool.curPage(ctl, 'company')}">
                        <g:link controller="company" action="list"><g:message code="home.company"/></g:link></li>
                    <li class="${StringTool.curPage(ctl, 'employee')}">
                        <g:link controller="employee" action="list"><g:message code="home.employee"/></g:link></li>
                    <li class="${StringTool.curPage(ctl, 'project', 'proCompany', 'proEmployee', 'proUser', 'task')}">
                        <g:link controller="project" action="list"><g:message code="home.project"/></g:link></li>
                    %{--<li class="${StringTool.curPage(ctl, 'report')}">--}%
                        %{--<g:link controller="report" action="search">Report</g:link></li>--}%
                    <li class="${StringTool.curPage(ctl, 'expenseGroup', 'expenseDetail')}">
                        <g:link controller="expenseGroup" action="list"><g:message code="home.expense"/></g:link></li>
                </ul>

                <div class="clearer">&nbsp;</div>
            </div>
        </div>
    </div>
</div>

<g:layoutBody/>

<div id="footer-wrapper">
    <div class="center-wrapper">
        <div id="footer">
            <div class="left">
                <g:link controller="user" action="list">User</g:link> <span class="text-separator">|</span>
                <g:link controller="role" action="list">Role</g:link> <span class="text-separator">|</span>
                <g:link controller="fileStore" action="list">FileStore</g:link> <span class="text-separator">|</span>
            </div>

            <div class="right">
                <g:link url="${request.requestURI}?lang=en_US">English</g:link>
                | <g:link url="${request.requestURI}?lang=zh_CN">中文</g:link>
            </div>

            <div class="clearer">&nbsp;</div>
        </div>
    </div>
</div>

<div id="bottom">
    <div class="center-wrapper">
        <div class="left">
        &copy; 2013 techmark.com - Best Database Tool
            <span class="text-separator">|</span>
            <g:link controller="home" action="controllerList">Controller List</g:link>
        </div>

        <div class="right">
            Code by Calvin
        </div>

        <div class="clearer">&nbsp;</div>
    </div>
</div>

</body>
</html>